package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallGoodsShipTypeMapper;
import org.linlinjava.litemall.db.dao.app.AppShipTypeMapper;
import org.linlinjava.litemall.db.vo.app.AgedmallGoodsShipTypeVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AgedmallGoodsShipTypeService {
    @Resource
    private AgedmallGoodsShipTypeMapper agedmallGoodsShipTypeMapper;
    @Resource
    private AppShipTypeMapper appShipTypeMapper;

    public List<AgedmallGoodsShipTypeVo> getByGoodsAndStore(Byte type, Integer goodsId, Integer storeId) {
        return appShipTypeMapper.getByGoodsAndStore(type, goodsId, storeId);
    }

    public AgedmallGoodsShipTypeVo getByGoodsAndStoreAndShip(Byte type, Integer goodsId, Integer storeId, String shipSn) {
        return appShipTypeMapper.getByGoodsAndStoreAndShip(type, goodsId, storeId, shipSn);
    }
}
